
cc.Class({
    extends: cc.Component,

    properties: {
        tag :[cc.Node],
        startY : 0,
        endY : 0 
    },

    // LIFE-CYCLE CALLBACKS:

    onLoad () {

    },

    start () {
        // cc.log('====',this.node.children[0].y)
    },

    move(dt){
        for(let i=0; i<this.tag.length; i++){
            this.tag[i].y+=1440*dt*2;
            if(this.tag[i].y>1440){
                this.tag[i].y -= 1440
            }
        }
    },
    update (dt) {
        
        !cc.isPauseGame && this.move(dt);
    },
});
